# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-planet-geminipda
pkgdesc="Gemini PDA"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base devicepkg-utils linux-planet-geminipda mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo
	10-geminipda-loopback-device.sh
	20-fbdev.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname

	install -Dm644 "$srcdir"/10-geminipda-loopback-device.sh \
		"$pkgdir"/usr/share/mkinitfs/hooks/10-geminipda-loopback-device.sh

	install -Dm644 "$srcdir"/20-fbdev.conf \
		"$pkgdir"/etc/X11/xorg.conf.d/20-fbdev.conf
}

sha512sums="
96d880b5d84ab58ad00237ebee6b36c298ac0a7ffee9ce03103e999ea892e491cb740edcdcd48a9e2dd3efb956f33b016a6a410ab6a6efd78b6fc283f3422d84  deviceinfo
7082c8e98d0295b03a192cc61aea6cef8fb23ab93b52cee55e886a6e92c6413da48238cee97bfd27d5726da485f7f207648885456f0a8c9a4798b5be5a3c7361  10-geminipda-loopback-device.sh
07bda3435dffec7f8e8e158266cb619fb41c6b04a49a605e76fa88bc33be3cb27fdc54c8664be0738bab2c7a8054ce3d7563036323bf04762dcf735064ac10a2  20-fbdev.conf
"
